[gd_scene load_steps=9 format=2]

[ext_resource path="res://blokoj/kosmo/shaders/noise.png" type="Texture2D" id=1]
[ext_resource path="res://blokoj/kosmo/shaders/star.gdshader" type="Shader" id=2]
[ext_resource path="res://resursoj/stelamapo_8k.jpg" type="Texture2D" id=3]
[ext_resource path="res://blokoj/kosmo/resursoj/space_env.tres" type="Environment" id=4]
[ext_resource path="res://addons/SIsilicon.vfx.godrays/GodRays.gd" type="Script" id=5]
[ext_resource path="res://blokoj/kosmo/skriptoj/star.gd" type="Script" id=6]

[sub_resource type="ShaderMaterial" id=1]
resource_local_to_scene = true
shader = ExtResource( 2 )
shader_param/iTime = 0.0
shader_param/sun_radius = 20.0
shader_param/noise_freq = 10.0
shader_param/SUN_POS = Vector3( 0, 0, -1 )
shader_param/sun_color = Color( 0.933333, 0.792157, 0.0313726, 1 )
shader_param/Noise = ExtResource( 1 )
shader_param/space_env_texture = ExtResource( 3 )

[sub_resource type="ImageTexture" id=2]
flags = 0
lossy_quality = 1.0
flags = 0
size = Vector2( 2048, 2048 )

[node name="star" type="Node3D"]
script = ExtResource( 6 )

[node name="Env" type="WorldEnvironment" parent="."]
environment = ExtResource( 4 )

[node name="space_viewport" type="SubViewport" parent="."]
size = Vector2( 2048, 2048 )
render_target_update_mode = 3

[node name="space_texture" type="Sprite2D" parent="space_viewport"]
material = SubResource( 1 )
texture = SubResource( 2 )
centered = false

[node name="star" type="DirectionalLight3D" parent="."]

[node name="GodRays" type="Node3D" parent="star"]
visible = false
script = ExtResource( 5 )
exposure = 0.2
light_size = 1.0

[node name="Control" type="Control" parent="."]
visible = false
offset_right = 40.0
offset_bottom = 40.0
__meta__ = {
"_edit_use_anchors_": false
}

[node name="Label2" type="Label" parent="Control"]
offset_left = 316.696
offset_top = 490.868
offset_right = 380.696
offset_bottom = 504.868
text = "sun_noise"
__meta__ = {
"_edit_use_anchors_": false
}

[node name="HScrollBar" type="HScrollBar" parent="Control/Label2"]
offset_left = 0.735092
offset_top = 16.1721
offset_right = 208.735
offset_bottom = 28.1721
__meta__ = {
"_edit_use_anchors_": false
}

[node name="CheckBox" type="CheckBox" parent="Control"]
offset_left = 313.938
offset_top = 458.781
offset_right = 412.938
offset_bottom = 482.781
text = "MEGA_SUN"
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="value_changed" from="Control/Label2/HScrollBar" to="." method="_on_HScrollBar_value_changed"]
[connection signal="toggled" from="Control/CheckBox" to="." method="_on_CheckBox_toggled"]
